<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <!-- 标签 id class -->
  <style>
    h1,
    div {
      color: red;
    }
    /* 后代 */
    /* .box span {
        color: pink;
        font-size: 100px;
    }
    ul li {
        color: red;
    } */
    ul > li {
        color: pink;
    }
    .box {
        width: 100px;
        height: 100px;
        background-color: red;
        color: #fff;
        /* display: none;
        display: block; */
    }
    .box:hover { 
        width: 100px;
        height: 100px;
        background-color: red;
        color: pink;
        text-decoration: underline;;
        transform: translate3d(0, -2px, 0);
        box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
    }
  </style>
  <body> 
    <div class="box">
      <p>
        撒看看撒
        <span>我是span1标签</span>
        <p>
            <span>我是span2标签</span>
        </p>
      </p>
    </div> 
  </body>
</html>
